﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using WeChat.Common;
using WeChat.Model;

namespace WeChat.ViewModel
{
    class CollectViewModel : NotifyBase
    {
        private string _SearchText;
        public string SearchText
        {
            get { return _SearchText; }
            set { _SearchText = value; }
        }
        public ObservableCollection<CollectMenuModel> MenuList { get; set; } = new ObservableCollection<CollectMenuModel>();

        public CollectViewModel()
        {
            this.SearchText = "搜索";
            this.GetMenuList();
        }

        private void GetMenuList()
        {
            for (int i = 1; i <= 7; i++)
            {
                this.MenuList.Add(new CollectMenuModel { CollectMenuId = i, CollectMenuIcon = "&#xe655;", CollectMenuName = $"昵称{i}", });
            }
        }
    }
}
